package com.epichust.bootuqc.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

//检测单
public class Uqcm5SelfCheck implements Serializable {
    private static final long serialVersionUID = -1L;
    private Integer id;
    /**
     * 检测单据号.
     */
    private String code;
    /**
     * 派工单号.
     */
    private String trackOrderCode;
    /**
     * 物料编码.
     */
    private String mrlCode;

    /**
     * 物料名称.
     */
    private String mrlName;

    /**
     * 订单号.
     */
    private String planOrderCode;
    /**
     * 工单号.
     */
    private String workOrderCode;
    /**
     * 检测类型编码.
     */
    private String chkTypeCode;
    /**
     * 检测类型名称.
     */
    private String chkTypeName;
    /**
     * 处理状态(0待处理,3处理中,7已处理,8已确认,9驳回).
     * 处理状态(0待检,3检验中,7已检待确认,8判定,9驳回) 20190521改
     */
    private Integer processState = 0;
    /**
     * 处理人.
     */
    private String processer;

    /**
     * 处理时间.
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date processDate;

    /**
     * 计划检测数量.
     */
    private BigDecimal planChkQty;

    /**
     * 单据检测结果(0未判定、1不合格、5放行、7合格).
     */
    private Integer chkResult = 0;

    /**
     * 质检标记（ 1批次检、2序列检）.
     */
    private Integer chkFlag;
    /**
     * 备注.
     */
    private String remark;
    /**
     * 预留字段10.
     */
    private String uda10;
    /**
     * 预留字段10.
     */
    private String uda5;

    public String getUda5() {
        return uda5;
    }

    public void setUda5(String uda5) {
        this.uda5 = uda5;
    }

    /**
     * 工作中心编码.
     */
    private String workCenterCode;

    /**
     * 工作中心名称.
     */
    private String workCenterName;

    /**
     * 工序编码.
     */
    private String opCode;

    /**
     * 工序名称.
     */
    private String opName;

    /**
     * 工位编码.
     */
    private String workCellCode;

    /**
     * 工位名称.
     */
    private String workCellName;

    /**
     * 检测模板编码.
     */
    private String chkTemplateCode;

    /**
     * 检测模板名称.
     */
    private String chkTemplateName;

    /**
     * 检测频次类型(0数量、1时间).
     */
    private Integer chkFqType;
    private Integer route_gid;

    public Integer getRoute_gid() {
        return route_gid;
    }

    public void setRoute_gid(Integer route_gid) {
        this.route_gid = route_gid;
    }

    /**
     * 检测频次值.
     */
    private String chkFqValue;
    /**
     * 乐观锁标记
     */
    private Integer optlock = 0;
    private String selfChkProcesser;// 自检人
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date selfChkDate; //自检时间
    private String eachChkPerson; // 互检人
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date eachChkDate; //互检时间
    private String specialChkPerson; // 专检人
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date specialChkDate; //专检时间
    private String workShiftClassCode; // 班制编码
    private String singDate;// 员工签到时间
    //单据类型(QIS)
    private Integer qisDocType;  //0:不合格任务 1:委外任务
    //不合格处理状态(QIS)(0待处理,3处理中,7已处理,8已确认,9驳回).
    private Integer qisProcessState;
    //不合格提审状态(QIS)(0:未发起 1:已发起-未返回 2:已返回)
    private Integer qisTrialState;
    //不合格检测结果(0未判定、1直接回用、2返修回用、3配置回用、4废料补料、5工废补料、6其他)
    private Integer qisChkResult;


    private String offChkBillCode;//自检不合格创建专检任务，保存自检的编码
    private String siteCode;//工厂编码
    public String getSiteCode() {
        return siteCode;
    }

    public void setSiteCode(String siteCode) {
        this.siteCode = siteCode;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTrackOrderCode() {
        return trackOrderCode;
    }

    public void setTrackOrderCode(String trackOrderCode) {
        this.trackOrderCode = trackOrderCode;
    }

    public String getMrlCode() {
        return mrlCode;
    }

    public void setMrlCode(String mrlCode) {
        this.mrlCode = mrlCode;
    }

    public String getMrlName() {
        return mrlName;
    }

    public void setMrlName(String mrlName) {
        this.mrlName = mrlName;
    }

    public String getPlanOrderCode() {
        return planOrderCode;
    }

    public void setPlanOrderCode(String planOrderCode) {
        this.planOrderCode = planOrderCode;
    }

    public String getWorkOrderCode() {
        return workOrderCode;
    }

    public void setWorkOrderCode(String workOrderCode) {
        this.workOrderCode = workOrderCode;
    }

    public String getChkTypeCode() {
        return chkTypeCode;
    }

    public void setChkTypeCode(String chkTypeCode) {
        this.chkTypeCode = chkTypeCode;
    }

    public String getChkTypeName() {
        return chkTypeName;
    }

    public void setChkTypeName(String chkTypeName) {
        this.chkTypeName = chkTypeName;
    }

    public Integer getProcessState() {
        return processState;
    }

    public void setProcessState(Integer processState) {
        this.processState = processState;
    }

    public String getProcesser() {
        return processer;
    }

    public void setProcesser(String processer) {
        this.processer = processer;
    }

    public Date getProcessDate() {
        return processDate;
    }

    public void setProcessDate(Date processDate) {
        this.processDate = processDate;
    }

    public BigDecimal getPlanChkQty() {
        return planChkQty;
    }

    public void setPlanChkQty(BigDecimal planChkQty) {
        this.planChkQty = planChkQty;
    }

    public Integer getChkResult() {
        return chkResult;
    }

    public void setChkResult(Integer chkResult) {
        this.chkResult = chkResult;
    }

    public Integer getChkFlag() {
        return chkFlag;
    }

    public void setChkFlag(Integer chkFlag) {
        this.chkFlag = chkFlag;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getUda10() {
        return uda10;
    }

    public void setUda10(String uda10) {
        this.uda10 = uda10;
    }

    public String getWorkCenterCode() {
        return workCenterCode;
    }

    public void setWorkCenterCode(String workCenterCode) {
        this.workCenterCode = workCenterCode;
    }

    public String getWorkCenterName() {
        return workCenterName;
    }

    public void setWorkCenterName(String workCenterName) {
        this.workCenterName = workCenterName;
    }

    public String getOpCode() {
        return opCode;
    }

    public void setOpCode(String opCode) {
        this.opCode = opCode;
    }

    public String getOpName() {
        return opName;
    }

    public void setOpName(String opName) {
        this.opName = opName;
    }

    public String getWorkCellCode() {
        return workCellCode;
    }

    public void setWorkCellCode(String workCellCode) {
        this.workCellCode = workCellCode;
    }

    public String getWorkCellName() {
        return workCellName;
    }

    public void setWorkCellName(String workCellName) {
        this.workCellName = workCellName;
    }

    public String getChkTemplateCode() {
        return chkTemplateCode;
    }

    public void setChkTemplateCode(String chkTemplateCode) {
        this.chkTemplateCode = chkTemplateCode;
    }

    public String getChkTemplateName() {
        return chkTemplateName;
    }

    public void setChkTemplateName(String chkTemplateName) {
        this.chkTemplateName = chkTemplateName;
    }

    public Integer getChkFqType() {
        return chkFqType;
    }

    public void setChkFqType(Integer chkFqType) {
        this.chkFqType = chkFqType;
    }

    public String getChkFqValue() {
        return chkFqValue;
    }

    public void setChkFqValue(String chkFqValue) {
        this.chkFqValue = chkFqValue;
    }

    public Integer getOptlock() {
        return optlock;
    }

    public void setOptlock(Integer optlock) {
        this.optlock = optlock;
    }

    public String getSelfChkProcesser() {
        return selfChkProcesser;
    }

    public void setSelfChkProcesser(String selfChkProcesser) {
        this.selfChkProcesser = selfChkProcesser;
    }

    public Date getSelfChkDate() {
        return selfChkDate;
    }

    public void setSelfChkDate(Date selfChkDate) {
        this.selfChkDate = selfChkDate;
    }

    public String getEachChkPerson() {
        return eachChkPerson;
    }

    public void setEachChkPerson(String eachChkPerson) {
        this.eachChkPerson = eachChkPerson;
    }

    public Date getEachChkDate() {
        return eachChkDate;
    }

    public void setEachChkDate(Date eachChkDate) {
        this.eachChkDate = eachChkDate;
    }

    public String getSpecialChkPerson() {
        return specialChkPerson;
    }

    public void setSpecialChkPerson(String specialChkPerson) {
        this.specialChkPerson = specialChkPerson;
    }

    public Date getSpecialChkDate() {
        return specialChkDate;
    }

    public void setSpecialChkDate(Date specialChkDate) {
        this.specialChkDate = specialChkDate;
    }

    public String getWorkShiftClassCode() {
        return workShiftClassCode;
    }

    public void setWorkShiftClassCode(String workShiftClassCode) {
        this.workShiftClassCode = workShiftClassCode;
    }

    public String getSingDate() {
        return singDate;
    }

    public void setSingDate(String singDate) {
        this.singDate = singDate;
    }

    public Integer getQisDocType() {
        return qisDocType;
    }

    public void setQisDocType(Integer qisDocType) {
        this.qisDocType = qisDocType;
    }

    public Integer getQisProcessState() {
        return qisProcessState;
    }

    public void setQisProcessState(Integer qisProcessState) {
        this.qisProcessState = qisProcessState;
    }

    public Integer getQisTrialState() {
        return qisTrialState;
    }

    public void setQisTrialState(Integer qisTrialState) {
        this.qisTrialState = qisTrialState;
    }

    public Integer getQisChkResult() {
        return qisChkResult;
    }

    public void setQisChkResult(Integer qisChkResult) {
        this.qisChkResult = qisChkResult;
    }

    public String getOffChkBillCode() {
        return offChkBillCode;
    }

    public void setOffChkBillCode(String offChkBillCode) {
        this.offChkBillCode = offChkBillCode;
    }
}
